<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="/css/layui.css">
<link rel="stylesheet" href="/css/list.css"></link>
<script src="/js/jquery-3.7.1.min.js"></script>
<body>
<div class="containner">

    <div class="layui-form-item">
        <div class="layui-input-group">
            <input type="text" id="studentName" placeholder="请输入学生姓名" class="layui-input">
            <div class="layui-input-split layui-input-suffix" style="cursor: pointer;" id="search">
                <i class="layui-icon layui-icon-search"></i>
            </div>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" id="clear">重置</button>

        </div>
        <!--<button type="button" class="layui-btn " id="add">新增</button>-->
    </div>
    <div class="layui-row">
        <div class="layui-col-xs12 toolbar" >
            <button type="button" class="layui-btn layui-btn-sm layui-btn-normal" id="add" onclick="showStudentDlg(); return false;">
                <i class="layui-icon layui-icon-add-1">添加</i>
            </button>
        </div>
        <div class="layui-col-xs12">
            <table class="layui-table" lay-even>
                <thead style="background-color: #9fc3e3">
                <tr>
                    <th>id</th>
                    <th>姓名</th>
                    <th>学号</th>
                    <th>年龄</th>
                    <th>性别</th>
                    <th>密码</th>
                    <th>编辑</th>
                </tr>
                </thead>
                <tbody id="studentTb" style="background-color: #f1eeee">

                </tbody>
            </table>
        </div>
    </div>


</div>
<form class="layui-form dlgcontainer" id="studentForm" style="display: none">
    <div class="demo-reg-container">

        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-username"></i>
                </div>
                <input type="text" name="name" value="" lay-verify="required" placeholder="姓名" autocomplete="off" class="layui-input" lay-affix="clear" id="name">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-vercode"></i>
                </div>
                <input type="text" name="stunumber" value="" lay-verify="required" placeholder="学号" lay-reqtext="请填写学号" autocomplete="off" class="layui-input" id="stunumber" >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-vercode"></i>
                </div>
                <input type="text" name="age" value="" lay-verify="required" placeholder="年龄" lay-reqtext="请填写年龄" autocomplete="off" class="layui-input" id="age" >
            </div>
        </div>


        <div class="layui-form-item" pane >
            <label class="layui-form-label" style="width: 29px">性别</label>
            <div class="layui-input-block" id="gender" style="margin-left: 85px">
                <input type="radio" name="gender" value="男" title="男" checked>
                <input type="radio" name="gender" value="女" title="女">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-password"></i>
                </div>
                <input type="password" name="password" value="" lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input"  lay-affix="eye" id="password">
            </div>
        </div>
        <div class="layui-form-item">
            <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="stu-dlg" id="btnOK" >确定</button>
        </div>
    </div>
</form>

<script src="/js/layui.js"></script>
<script src="/pagejs/list.js"></script>
</body>
</html>